package cn.blackhole.simple.domain.circuitBreaker.service.impl;

import cn.blackhole.simple.common.exception.RetryExhaustedException;
import cn.blackhole.simple.domain.circuitBreaker.service.FallbackHandler;

import java.net.URI;

// 默认降级处理器
public class DefaultFallbackHandler<T> implements FallbackHandler<T> {

    @Override
    public T handleFallback(URI uri, Throwable ex) {
        throw new RetryExhaustedException("Fallback not implemented", ex);
    }
}